package io.renren.modules.medical.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.medical.dao.EducationContentDao;
import io.renren.modules.medical.entity.EducationContentEntity;
import io.renren.modules.medical.service.EducationContentService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("educationContentService")
public class EducationContentServiceImpl extends ServiceImpl<EducationContentDao, EducationContentEntity> implements EducationContentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {

        IPage<EducationContentEntity> page = this.page(
                new Query<EducationContentEntity>().getPage(params),
                new QueryWrapper<>()
        );

        return new PageUtils(page);
    }

}